package com.how2java.springboot.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AspectTest {
//切面可以从接口切入
	@Before("execution(public * com.how2java.springboot.service.ICategory.findAll())")
	public void execMapper(){
		System.out.println("执行了T的sql查询");
	}
	
}
